let rl = require('readline').createInterface(process.stdin)
let lines = []; //将每一行作为数组保存
rl.on('line', line=>lines.push(
		line.trim().split(/\s+/).map(str=>parseInt(str))
	)
)
rl.on('close',()=>{
	//main
    let n = lines[0][0] //第一个数字往往是n
    lines.forEach(line=>{
        console.log(
            eval(line.join('+'))//数组求和黑科技
        )
    })
})